import React from 'react'
import {StyInfoUi} from './StyInfo'


const InfoUi = (props) =>{
  // console.log(props.info);
  var obj = JSON.parse(sessionStorage.username)
  console.log(obj)
  return (
      <StyInfoUi>
         <div className='heade'>
           <div className='left'>
             <div className='img'><img src={obj.uhead} alt=""/></div>
           <div className='asd'><h2>{obj.pname}({obj.xveke}老师)</h2><span>1小时&nbsp;&nbsp;发布</span></div>
           </div>
           <p>进行中</p>
         </div>
         <div className='content'>
         <h1>{ props.info.dkName }</h1>
         <span>{`周期${props.info.day}天`}&nbsp;&nbsp;&nbsp;频次工作日</span>
         <p>{ props.info.dkBody }</p>
           <div className='img'><img src={`http://8iswhp.natappfree.cc/${props.info.dkPhoto}`} alt=""/></div>
         <h2>{ props.info.clazz }</h2>
         </div>
      </StyInfoUi>
  )
}

export default InfoUi